package code;

import interfaces.*;
import java.util.*;

public class OrderImpl implements Order{
	private int id, setupTime, productionTime, drawing;
	private Date deliveryTime;
	
	@Deprecated
	public OrderImpl(int id, int setupTime, int productionsTime, int drawing, Date deliveryTime){
		this.id = id; this.setupTime = setupTime; this.productionTime = productionsTime; 
		this.drawing = drawing; this.deliveryTime = deliveryTime;
	}
	
	@Deprecated
	public OrderImpl(int id, int productionsTime, int drawing, Date deliveryTime){
		this.id = id; this.productionTime = productionsTime; 
		this.drawing = drawing; this.deliveryTime = deliveryTime;
	}
	
	public OrderImpl(int id, int drawing, Date deliveryTime){
		this.id = id; 
		this.drawing = drawing; 
		this.deliveryTime = deliveryTime;
	}
	
	public int getId(){
		return id;
	}
	
	@Deprecated
	public int getSetupTime(){
		return setupTime;
	}
	
	public int getProductionsTime(){
		return productionTime;
	}
	
	public int getDrawing(){
		return drawing;
	}
	
	public Date getDelivery(){
		return deliveryTime;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	@Deprecated
	public void setSetupTime(int setupTime){
		this.setupTime = setupTime;
	}
	
	public void setProduktionsTid(int productionsTime){
		this.productionTime = productionsTime;
	}
	
	public void setDrawing(int drawing){
		this.drawing = drawing;
	}
	
	public void setDelivery(Date deliveryTime){
		this.deliveryTime = deliveryTime;
	}
	
	public String toString(){
		return("ID: " + id + ", Tegnings nummer: " + drawing + ", Leverings dato: " + deliveryTime.getDate() + "/" + (deliveryTime.getMonth()+1) + " - " + deliveryTime.getYear());
	}
}